<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        ul {
            overflow: hidden;
            list-style: none;
        }
        /* div {
            background-repeat:repeat-x;
        } */
         /* 延x轴平铺 */
        img {
            /* transform: rotate(90deg); */
           

        }
        li {
            /* 去掉前面的小圆点 */
            list-style-type: none;
            width: 100%;
            cursor: pointer;
            /* 横向排列 */
            display: inline;
        }
    </style>
</head>
<body>
    <ul>
        <li>
        </li>
        <li></li>
        <li></li>
        <li></li>
        <li></li>
    </ul>
    <script>
        const data = "./images/sprite.png";
        const li = document.querySelectorAll('ul li');
        
        for(let i = 0;i < li.length;++i){
            const img = document.createElement('img');
            img.src = data;
            li[i].appendChild(img);
        }
    </script>


</body>
</html>